package day0829;
public class String4 {
    public static void main(String[] args) {
        String s1="今天天气刚刚好";
        char rs=s1.charAt(   s1.length()-1   );//7-1  '好'
        System.out.println(rs);

        boolean rs2=s1.endsWith("。");  //boolean :  true  false
        System.out.println("rs2 = " + rs2);

        boolean b1=s1.startsWith("张");//boolean :    false
        System.out.println("b1 = " + b1);
    }
}
